import {useEffect, useRef, useState} from "react";

export default function FunctionalRefTest(props){
    const textInput=useRef();
    useEffect(()=>{
        textInput.current.focus();
    })
    return <input ref={textInput} />
}